/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import slcu.model.CategoriaDisciplina;

/**
 * The persistence interface for the CategoriaDisciplinas service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see CategoriaDisciplinaPersistenceImpl
 * @see CategoriaDisciplinaUtil
 * @generated
 */
public interface CategoriaDisciplinaPersistence extends BasePersistence<CategoriaDisciplina> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link CategoriaDisciplinaUtil} to access the CategoriaDisciplinas persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the CategoriaDisciplinas in the entity cache if it is enabled.
	*
	* @param categoriaDisciplina the CategoriaDisciplinas
	*/
	public void cacheResult(slcu.model.CategoriaDisciplina categoriaDisciplina);

	/**
	* Caches the CategoriaDisciplinases in the entity cache if it is enabled.
	*
	* @param categoriaDisciplinas the CategoriaDisciplinases
	*/
	public void cacheResult(
		java.util.List<slcu.model.CategoriaDisciplina> categoriaDisciplinas);

	/**
	* Creates a new CategoriaDisciplinas with the primary key. Does not add the CategoriaDisciplinas to the database.
	*
	* @param categoriaId the primary key for the new CategoriaDisciplinas
	* @return the new CategoriaDisciplinas
	*/
	public slcu.model.CategoriaDisciplina create(long categoriaId);

	/**
	* Removes the CategoriaDisciplinas with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param categoriaId the primary key of the CategoriaDisciplinas
	* @return the CategoriaDisciplinas that was removed
	* @throws slcu.NoSuchCategoriaDisciplinaException if a CategoriaDisciplinas with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.CategoriaDisciplina remove(long categoriaId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCategoriaDisciplinaException;

	public slcu.model.CategoriaDisciplina updateImpl(
		slcu.model.CategoriaDisciplina categoriaDisciplina, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the CategoriaDisciplinas with the primary key or throws a {@link slcu.NoSuchCategoriaDisciplinaException} if it could not be found.
	*
	* @param categoriaId the primary key of the CategoriaDisciplinas
	* @return the CategoriaDisciplinas
	* @throws slcu.NoSuchCategoriaDisciplinaException if a CategoriaDisciplinas with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.CategoriaDisciplina findByPrimaryKey(long categoriaId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCategoriaDisciplinaException;

	/**
	* Returns the CategoriaDisciplinas with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param categoriaId the primary key of the CategoriaDisciplinas
	* @return the CategoriaDisciplinas, or <code>null</code> if a CategoriaDisciplinas with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.CategoriaDisciplina fetchByPrimaryKey(long categoriaId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the CategoriaDisciplinases where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @return the matching CategoriaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.CategoriaDisciplina> findByDisciplinaId(
		long disciplinaId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the CategoriaDisciplinases where disciplinaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param disciplinaId the disciplina ID
	* @param start the lower bound of the range of CategoriaDisciplinases
	* @param end the upper bound of the range of CategoriaDisciplinases (not inclusive)
	* @return the range of matching CategoriaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.CategoriaDisciplina> findByDisciplinaId(
		long disciplinaId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the CategoriaDisciplinases where disciplinaId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param disciplinaId the disciplina ID
	* @param start the lower bound of the range of CategoriaDisciplinases
	* @param end the upper bound of the range of CategoriaDisciplinases (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching CategoriaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.CategoriaDisciplina> findByDisciplinaId(
		long disciplinaId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first CategoriaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching CategoriaDisciplinas
	* @throws slcu.NoSuchCategoriaDisciplinaException if a matching CategoriaDisciplinas could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.CategoriaDisciplina findByDisciplinaId_First(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCategoriaDisciplinaException;

	/**
	* Returns the first CategoriaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching CategoriaDisciplinas, or <code>null</code> if a matching CategoriaDisciplinas could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.CategoriaDisciplina fetchByDisciplinaId_First(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last CategoriaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching CategoriaDisciplinas
	* @throws slcu.NoSuchCategoriaDisciplinaException if a matching CategoriaDisciplinas could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.CategoriaDisciplina findByDisciplinaId_Last(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCategoriaDisciplinaException;

	/**
	* Returns the last CategoriaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching CategoriaDisciplinas, or <code>null</code> if a matching CategoriaDisciplinas could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.CategoriaDisciplina fetchByDisciplinaId_Last(
		long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the CategoriaDisciplinases before and after the current CategoriaDisciplinas in the ordered set where disciplinaId = &#63;.
	*
	* @param categoriaId the primary key of the current CategoriaDisciplinas
	* @param disciplinaId the disciplina ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next CategoriaDisciplinas
	* @throws slcu.NoSuchCategoriaDisciplinaException if a CategoriaDisciplinas with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.CategoriaDisciplina[] findByDisciplinaId_PrevAndNext(
		long categoriaId, long disciplinaId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchCategoriaDisciplinaException;

	/**
	* Returns all the CategoriaDisciplinases.
	*
	* @return the CategoriaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.CategoriaDisciplina> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the CategoriaDisciplinases.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of CategoriaDisciplinases
	* @param end the upper bound of the range of CategoriaDisciplinases (not inclusive)
	* @return the range of CategoriaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.CategoriaDisciplina> findAll(int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the CategoriaDisciplinases.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of CategoriaDisciplinases
	* @param end the upper bound of the range of CategoriaDisciplinases (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of CategoriaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.CategoriaDisciplina> findAll(int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the CategoriaDisciplinases where disciplinaId = &#63; from the database.
	*
	* @param disciplinaId the disciplina ID
	* @throws SystemException if a system exception occurred
	*/
	public void removeByDisciplinaId(long disciplinaId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the CategoriaDisciplinases from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of CategoriaDisciplinases where disciplinaId = &#63;.
	*
	* @param disciplinaId the disciplina ID
	* @return the number of matching CategoriaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public int countByDisciplinaId(long disciplinaId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of CategoriaDisciplinases.
	*
	* @return the number of CategoriaDisciplinases
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}